.button {
  all: unset;
  position: relative;
  display: inline-flex;
  height: 3rem;
  align-items: center;
  border-radius: 9999px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-family: var(--global-font) !important;
  font-size: 1rem;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  cursor: pointer;
  background-color: transparent;
}

.buttonBg {
  overflow: hidden;
  border-radius: 2rem;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(1);
  transition: transform 1.8s cubic-bezier(0.19, 1, 0.22, 1);
  border: 2px solid rgba(24, 144, 255, 0.3);
  background-color: rgba(24, 144, 255, 0.1);
}

.buttonBgLayers {
  display: block;
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  top: -60%;
  aspect-ratio: 1 / 1;
  width: max(200%, 10rem);
}

.buttonBgLayer {
  border-radius: 9999px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(0);
  display: block;
}

/* 项目配色：蓝色和紫色渐变 */
.layer1 {
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
}

.layer2 {
  background: linear-gradient(135deg, #722ed1 0%, #9254de 100%);
}

.layer3 {
  background: linear-gradient(135deg, #1890ff 0%, #722ed1 100%);
}

.buttonInner {
  position: relative;
  pointer-events: none;
  display: block;
}

.buttonInnerStatic {
  pointer-events: none;
  display: block;
  transition:
    transform 1.4s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.3s linear;
}

.buttonInnerHover {
  pointer-events: none;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(70%);
  color: #ffffff;
  transition:
    transform 1.4s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Hover 效果 */
.button:hover .buttonInnerStatic {
  opacity: 0;
  transform: translateY(-70%);
}

.button:hover .buttonInnerHover {
  opacity: 1;
  transform: translateY(0);
}

.button:hover .buttonBgLayer {
  transition:
    transform 1.3s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.3s linear;
}

.button:hover .layer1 {
  transform: scale(1);
}

.button:hover .layer2 {
  transition-delay: 0.1s;
  transform: scale(1);
}

.button:hover .layer3 {
  transition-delay: 0.2s;
  transform: scale(1);
}

/* 按下效果 */
.button:active {
  transform: scale(0.95);
}

